package com.thinkingstar.iads.cs.sys.entity;

import org.nutz.dao.entity.annotation.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("dc_sys_user_role")
@TableIndexes({@Index(name = "INDEX_USERROLE", fields = {"userid","roleid"}, unique = true)})
public class SysUserRole {
	@Column
	@Comment("用户编号")
	private long userid;
	
	@Column
	@Comment("角色编号")
	private int roleid;

	@Column
	@Readonly
	@Comment("角色名称")
	private String roleName;
}
